package com.briup.day11.interfaceBean;

public class Monkey extends Animal implements ICycleAble , IJumpAble{
    private String name;

    public Monkey() {
    }

    public Monkey(String color, int age, String name) {
        super(color, age);
        this.name = name;
    }
    public void eat() {
        System.out.println(name+"猴子喜欢吃桃子");
    }
    public void sleep() {
        System.out.println(name+"猴子喜欢睡树上");
    }
    public void jump() {
        System.out.println("猴子"+name+"能跳火圈");
    }
    public void cycle() {
        System.out.println("猴子"+name+"能骑自行车");
    }
}
